package com.spsoft.vatoutinv.service.vmsfulloutinvoice.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spsoft.vatoutinv.entity.vmsfulloutinvoice.VmsFullOutInvoiceItems;
import com.spsoft.vatoutinv.mapper.VmsFullOutInvoiceItemsMapper;
import com.spsoft.vatoutinv.service.vmsfulloutinvoice.VmsFullOutInvoiceItemsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 数电发票明细表 服务实现类
 * </p>
 *
 * @author wangy
 * @since 2023-11-30
 */
@Service
public class VmsFullOutInvoiceItemsServiceImpl extends ServiceImpl<VmsFullOutInvoiceItemsMapper, VmsFullOutInvoiceItems> implements VmsFullOutInvoiceItemsService {

    @Override
    public List<VmsFullOutInvoiceItems> queryInvoiceDetails(Long id) {
        LambdaQueryWrapper<VmsFullOutInvoiceItems> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(VmsFullOutInvoiceItems::getFoidid, id);
        queryWrapper.orderByAsc(VmsFullOutInvoiceItems::getMxxh);
        return this.baseMapper.selectList(queryWrapper);
    }
}
